package com.tj.jinzao.fragment;

import android.os.Bundle;
import android.view.View;

import com.tj.jinzao.R;
import com.tj.jinzao.base.BaseFragment;
import com.tj.jinzao.callback.ILiveView;
import com.tj.jinzao.manager.UserManager;
import com.tj.jinzao.model.FriendBean;
import com.tj.jinzao.model.User;
import com.tj.jinzao.presenter.StartLivePresenter;

import java.util.List;

import butterknife.BindView;

/**
 * 开始直播
 * Created by wjy on 2019/1/1.
 */
public class StartLiveFragment extends BaseFragment<StartLivePresenter> implements ILiveView<List<FriendBean>> {
    protected final static String ARG_TAG_ID = "tagId";
    protected final static String ARG_LOAD_ID = "load_id";
    public final static String ARG_LAYOUT_RES_ID = "layoutResId";
    @BindView(R.id.fl_list_layout)
    View mListLayout;

    private User user;
    public static StartLiveFragment newInstance() {
        StartLiveFragment fragment = new StartLiveFragment();
        if (fragment != null) {
            Bundle args = new Bundle(3);
            args.putString(ARG_TAG_ID, "1");
            args.putInt(ARG_LOAD_ID, 1);
            args.putInt(ARG_LAYOUT_RES_ID, R.layout.start_live_fragment);
            fragment.setArguments(args);
        }

        return fragment;
    }


    @Override
    public void onRequestSuccess(List<FriendBean> friendBeans) {

    }

    @Override
    public void onRequestNoData(String message) {

    }

    @Override
    public void onRequestError(String error_message) {

    }

    @Override
    protected StartLivePresenter createPresenter() {
        user= UserManager.getInstance().getUser();
        return new StartLivePresenter(this);
    }





    private FriendBean datas;




    @Override
    public void onStartLiveSuccess() {

    }

    @Override
    public void onFaileds() {

    }
}
